<div id="sitenav">
<span class="inputlabel" style="color: #FFFFFF;">Sites:</span>&nbsp;
	<select id="sites">
	<option value="outword">--select option--</option>
	<?php
	if($_SESSION['sites']){
		$usersites = $_SESSION['sites'];
		foreach($usersites as $eachsite){
			$thissiteid = $eachsite['site_id'];
			$sitesrow = mysql_fetch_array(dbSelect('sites',array("id=$thissiteid")));
			echo '<option value="'.$sitesrow['siteurl'].'">'.$sitesrow['name'].'</option>';
		}
	}
	?>
	</select>
	<span class="fakelinkwhite" onclick="window.location.href='<?php echo $o['root']; ?>/'+document.getElementById('sites').options[document.getElementById('sites').selectedIndex].value;">view</span>&nbsp;
	<span class="fakelinkwhite" onclick="window.location.href='<?php echo $thisroot; ?>/addsite.php';">add</span>
</div>
